﻿using KingerRobot.PCRMES.Dao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRMES.SpiService;
/// <summary>
/// MES锁定
/// </summary>
public interface IWmsCheckRepositories
{
    #region 同步查询
    /// <summary>
    /// 根据Id查询实体
    /// </summary>
    /// <param name="objId"></param>
    /// <returns></returns>
    i_wms_check QueryById(string objId);
    /// <summary>
    /// 根据id数组查询实体list
    /// </summary>
    /// <param name="lstIds"></param>
    /// <returns></returns>
    List<i_wms_check> QueryByIDs(object[] lstIds);

   
    /// <summary>
    /// 更新model
    /// </summary>
    /// <param name="model"></param>
    /// <returns></returns>
    int Update(i_wms_check model);

    /// <summary>
    /// 根据model，更新，带where条件
    /// </summary>
    /// <param name="entity"></param>
    /// <param name="strWhere"></param>
    /// <returns></returns>
    int Update(Expression<Func<i_wms_check, bool>> whereExpression, i_wms_check entity);

    /// <summary>
    /// 正序查询第一条数据
    /// </summary>
    /// <returns></returns>
    i_wms_check First();
    /// <summary>
    /// 根据条件查询查询第一条数据
    /// </summary>
    /// <param name="whereExpression"></param>
    /// <returns></returns>
    i_wms_check First(Expression<Func<i_wms_check, bool>> whereExpression);

    /// <summary>
    /// 查询
    /// </summary>
    /// <returns></returns>
    List<i_wms_check> Query();


    /// <summary>
    /// 根据表达式查询
    /// </summary>
    /// <param name="whereExpression"></param>
    /// <returns></returns>
    List<i_wms_check> Query(Expression<Func<i_wms_check, bool>> whereExpression);
   
    #endregion
}
